﻿using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Activation;
using Acaweb.Common;
using Acaweb.Model.Entities;
using Acaweb.Servicios.Contracts;
using Components = Acaweb.Componentes.Contracts;

namespace Acaweb.Servicios.Services
{
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
    public class FacultadesService : IFacultadesService
    {
        Components.IFacultadesService _FacultadComponent = AppCtx.Resolve<Components.IFacultadesService>();

        public List<Facultades> GetAll()
        {
            List<Facultades> Lista = _FacultadComponent.GetAll().ToList();
            return Lista;
        }

        public Facultades GetById(int Id)
        {
            return _FacultadComponent.GetById(Id);
        }
    }
}